package com.yida.wy.common.domain.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 基础数据（房屋业主信息）新增或修改DTO
 *
 * @author lqq
 */
@Data
@ApiModel(value = "基础数据（房屋业主信息）新增或修改DTO")
public class WyBaseHouseOwnerAddUpdateRequest implements Serializable {
    private static final long serialVersionUID = 1L;

    @Valid
    @NotNull(message = "房屋信息不能为空")
    private WyBaseHouseAddUpdateRequest house;

    @Valid
    @NotNull(message = "业主信息不能为空")
    private WyBaseOwnerAddUpdateRequest owner;

    @ApiModelProperty("是否是外网")
    @NotNull(message = "请求参数有误[outsideFlag]为空")
    private Boolean outsideFlag;
}
